🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / ui / intro / IntroBottomBar.kt
Displaying Raw • Download
app/src/main/java/com/geeksville/mesh/ui/intro/IntroBottomBar.kt ui_message_list (be3f882f) Text, 2.11 KB
T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787com.geeksville.mesh.ui.intro
Tff7b72import T7ee787androidx.compose.foundation.layout.PaddingValues
Tff7b72import T7ee787androidx.compose.foundation.layout.Spacer
Tff7b72import T7ee787androidx.compose.foundation.layout.fillMaxWidth
Tff7b72import T7ee787androidx.compose.material3.BottomAppBar
Tff7b72import T7ee787androidx.compose.material3.Button
Tff7b72import T7ee787androidx.compose.material3.Text
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.compose.ui.unit.dp
T8b949e/**
* A common bottom bar used across app introduction screens. Provides consistent "Skip" and "Configure" (or "Next")
* buttons.
*
* @param onSkip Callback for the skip action.
* @param onConfigure Callback for the main configure/next action.
* @param skipButtonText Text for the skip button.
* @param configureButtonText Text for the configure/next button.
* @param showSkipButton Whether to display the skip button. Defaults to true.
*/
Tf0883e@Composable
Tff7b72internal Tff7b72fun Td2a8ffIntroBottomBarTb4b4b4(
Te6edf3onSkipTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Te6edf3onConfigureTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Te6edf3skipButtonTextTb4b4b4: Tffa657StringTb4b4b4,
Te6edf3configureButtonTextTb4b4b4: Tffa657StringTb4b4b4,
Te6edf3showSkipButtonTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72trueTb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3BottomAppBarTb4b4b4(Te6edf3contentPadding Tff7b72= Te6edf3PaddingValuesTb4b4b4(Te6edf3horizontal Tff7b72= T79c0ff1T79c0ff6.Te6edf3dpTb4b4b4, Te6edf3vertical Tff7b72= T79c0ff2T79c0ff0.Te6edf3dpTb4b4b4)Tb4b4b4) Tb4b4b4{
Tff7b72if Tb4b4b4(Te6edf3showSkipButtonTb4b4b4) Tb4b4b4{
Te6edf3ButtonTb4b4b4(Te6edf3onClick Tff7b72= Te6edf3onSkipTb4b4b4) Tb4b4b4{ Te6edf3TextTb4b4b4(Te6edf3skipButtonTextTb4b4b4) Tb4b4b4}
Tb4b4b4}
Te6edf3SpacerTb4b4b4(Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3fillMaxWidthTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3weightTb4b4b4(T79c0ff1fTb4b4b4)Tb4b4b4)
Te6edf3ButtonTb4b4b4(Te6edf3onClick Tff7b72= Te6edf3onConfigureTb4b4b4) Tb4b4b4{ Te6edf3TextTb4b4b4(Te6edf3configureButtonTextTb4b4b4) Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s